﻿<div id="sidebar">
    <h3>
        <a href="">Home</a></h3>
    <div>
        @Html.Partial("_LogOnPartial")
        <br />
        <div>
            <span class="ui-icon ui-icon-home" style="float: left; margin-right: .3em;"></span>
            @Html.ActionLink("Home", "Index", "Home")</div>
    </div>
    @if (Request.IsAuthenticated)
    {
        <h3>
            <a href="">Operations</a></h3>
        <div>
        @{if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("Operations"))
          {

            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Mission Request", "Index", "MissionHeader")</div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Outbound", "Outbound", "MissionDetail")</div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Inbound", "Inbound", "MissionDetail")</div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Mission Returned", "MissionReturned", "MissionDetail")</div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Mission History", "History", "MissionDetail")</div>
            <br />
          }
        }
        </div>
        
      
        <h3>
            <a href="">Fleet Management</a></h3>
        <div>
        @{if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("Fleet Management"))
          {
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("QC Pass Register", "QCPassRegister", "MissionDetail")</div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("QC Rejected Register", "QCRejectedRegister", "MissionDetail")</div>
            <br />
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Manage Vehicle", "Index", "Vehicle")</div>
            <br />
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Vehicle/Status?status=1">Trucks Ready</a></div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Vehicle/Status?status=2">Trucks Reserved</a></div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Vehicle/Status?status=3">On Mission</a></div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Vehicle/Status?status=4">Mission Returned</a></div>
            <br />
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/VehiclesReport.aspx" target="_blank">Vehicle Master List</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/MissionDetailsReport.aspx?q=History" target="_blank">QC Passed History</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/MissionDetailsReport.aspx?q=QCRejectedHistory" target="_blank">QC
                    Rejected History</a></div>
            <br />
            <br />
             }
          }
        </div>        
        
        <h3>
            <a href="">Driver Management</a></h3>
        <div>
        @{if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("Driver Management"))
          {

            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Manage Driver", "Index", "Driver")</div>
            <br />
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Driver/Status?status=1">Drivers Available</a></div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Driver/Status?status=2">Drivers Reserved</a></div>
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                <a href="/Driver/Status?status=3">On Mission</a></div>
            <br />
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/DriverReport.aspx" target="_blank">Driver List Report</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/DriverDutyListReport.aspx" target="_blank">Driver Duty List</a></div>
            <br />
            <br />
          }
        }
        </div>
        <h3>
            <a href="">HR Databank</a></h3>
        <div>
        @{if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("HR Databank"))
          {
            <div>
                <span class="ui-icon ui-icon-tag" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Manage Driver", "Index", "Driver")</div>


@*            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/Drivers.aspx" target="_blank">Passport Expiry Report</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/Drivers.aspx" target="_blank">Civil ID Expiry Report</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/Drivers.aspx" target="_blank">Residency Expiry Report</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/Drivers.aspx" target="_blank">ASG-KU Expiry Report</a></div>
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/Drivers.aspx" target="_blank">USF-Virginia Expiry Report</a></div>
            
            <div>
                <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                <a href="/Reports/PayrollReport.aspx" target="_blank">Payroll Report</a>
            </div>*@
            
            <br />
            <br />
          }
        }
        </div>

        <h3>
            <a href="">Reports</a></h3>
        <div>
            @{if (Roles.IsUserInRole("Administrator") || Roles.IsUserInRole("View Reports"))
              { 
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/AvailabilityReport.aspx" target="_blank">Availability Report</a>
                </div> 
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionRequestReport.aspx" target="_blank">Mission Request Report</a>
                </div>                                  
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionRollupReport.aspx" target="_blank">Mission Rollup Report</a>
                </div>
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionDetailsReport.aspx?q=History" target="_blank">Mission History
                        Report</a>
                </div>
               
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/TMRMilageReport.aspx" target="_blank">TMR Milage Report</a>
                </div>
                               
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionDetailsReport.aspx?q=Outbound" target="_blank">Mission Scheduled</a>
                </div>
                
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionDetailsReport.aspx?q=Inbound" target="_blank">On Mission</a>
                </div>                
                
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionDetailsReport.aspx?q=History" target="_blank">QC Passed History</a>
                </div>
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/MissionDetailsReport.aspx?q=QCRejectedHistory" target="_blank">QC
                        Rejected History</a>
                 </div>
                
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/DriverDutyListReport.aspx" target="_blank">Driver Duty List</a></div>

                <br />
                <br />
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/NorthBoundMissionDetailsReport.aspx" target="_blank">NorthBound Mission Details</a>
                </div> 
                <div>
                    <span class="ui-icon ui-icon-print" style="float: left; margin-right: .3em;"></span>
                    <a href="/Reports/YardCountReport.aspx" target="_blank">Yard Count Report</a></div>                                
                
              }
            }
        </div>        
        
        <h3>
            <a href="">Settings</a></h3>
        <div>
            <div>
                <span class="ui-icon ui-icon-key" style="float: left; margin-right: .3em;"></span>
                @Html.ActionLink("Change Password", "ChangePassword", "Account")</div>
            <br />
            @{if (Roles.IsUserInRole("Administrator"))
              { 
                <div>
                    <span class="ui-icon ui-icon-person" style="float: left; margin-right: .3em;"></span>
                    @Html.ActionLink("User Administration", "Index", "UserAdministration")
                </div>
              }
            }
        </div>
    }
    <h3>
        <a href="">About Us</a></h3>
    <div>
        <div>
            <span class="ui-icon ui-icon-comment" style="float: left; margin-right: .3em;"></span>
            @Html.ActionLink("About Us", "About", "Home")</div>
    </div>
</div>
